GXX = g++
TARGET = main
SRC = $(wildcard *.cc)
OBJ = $(patsubst %.cc,%.o,$(SRC))

$(TARGET):$(OBJ)
	$(GXX) -o $@ $^ 

%.o:%.cc 
	$(GXX)  -c $< -o $@  -std=c++11

.PHONY:clean
clean:
	rm -rf $(OBJ) $(TARGET)
